﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Chromos
{
	public class Sprite
	{

		public class Axis
		{
			public int X, Y, Height, Width, direction;
			public Texture2D sprite;

			public Axis(int X, int Y, int Height, int Width, int direction, Texture2D sprite)
			{
				this.X = X;
				this.Y = Y;
				this.Height = Height;
				this.Width = Width;
				this.direction = direction;
				this.sprite = sprite;
			}
			public int returnX()
			{
				return X;
			}
			public int returnY()
			{
				return Y;
			}
			public int returnHeight()
			{
				return Height;
			}
			public int returnWidth()
			{
				return Width;
			}
			public void setObject(float buffer)
			{
				this.X += (int)buffer;
			}
			public Vector2 returnVect()
			{
				Vector2 temp;
				temp.X = this.X;
				temp.Y = this.Y;
				return temp;
			}
			public void move(float speed)
			{
				if (direction == 1)
				{
					this.X -= (int)speed;
				}
				else
				{
					this.X += (int)speed;
				}
			}
		};

		private List<Axis> spriteList;

		public Sprite(List<Axis> list)
		{
			spriteList = list;
		}
	}

}
